home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / AppleScript for Acrobat plug-in / SOURCES / DEBUGGER.H next >
Encoding:
C/C++ Source or Header  |  2000-06-24  |  2.1 KB  |  66 lines

  1. /************************************************************************
  2.  
  3. DebuggerWindow.h
  4.  
  5. This file is furnished to you by Adobe Systems Incorporated 
  6. under the terms of the Acrobat(r) Plug-ins Software 
  7. Development Kit License Agreement.
  8.  
  9.  
  10. A catalog of all the functions exported by the DebuggerWindow plug-in.
  11.  
  12. ****************************************************************************/
  13.  
  14. #ifndef _H_DebuggerWindow
  15. #define _H_DebuggerWindow
  16.  
  17. #include "ASExpT.h"
  18. #include "AVExpT.h"
  19.  
  20. enum
  21. {
  22.     DebuggerWindowBAD_SELECTOR,
  23.     ShowDebuggerWindowSEL,
  24.     HideDebuggerWindowSEL,
  25.     DebuggerEmitStringSEL,
  26.     GetDebuggerWindowSEL,
  27.     DebuggerWindowFlushSEL,
  28.     DebuggerWindowNUMSELECTORSPlusOne
  29. };
  30.  
  31. extern HFT gDebuggerWindowHFT;
  32.  
  33. #define DebuggerWindowNUMSELECTORS (DebuggerWindowNUMSELECTORSPlusOne - 1)
  34.  
  35. /* ShowDebuggerWindow
  36. ** Shows the debugger window.
  37. */
  38. typedef ACCBPROTO1 void (ACCBPROTO2 *ShowDebuggerWindowSELPROTO)(void);
  39. #define ShowDebuggerWindow (*((ShowDebuggerWindowSELPROTO)(gDebuggerWindowHFT[ShowDebuggerWindowSEL])))
  40.  
  41. /* HideDebuggerWindow
  42. ** Hides the debugger window
  43. */
  44. typedef ACCBPROTO1 void (ACCBPROTO2 *HideDebuggerWindowSELPROTO)(void);
  45. #define HideDebuggerWindow (*((HideDebuggerWindowSELPROTO)(gDebuggerWindowHFT[HideDebuggerWindowSEL])))
  46.  
  47. /* DebuggerEmitString
  48. ** Emits a C string to the debugger window.  Carriage returns must be explicit in msg.
  49. */
  50. typedef ACCBPROTO1 void (ACCBPROTO2 *DebuggerEmitStringSELPROTO)(const char *msg);
  51. #define DebuggerEmitString (*((DebuggerEmitStringSELPROTO)(gDebuggerWindowHFT[DebuggerEmitStringSEL])))
  52.  
  53. /* GetDebuggerWindow
  54. ** Gets the Debugger Window's AVWindow object.
  55. */
  56. typedef ACCBPROTO1 AVWindow (ACCBPROTO2 *GetDebuggerWindowSELPROTO)(void);
  57. #define GetDebuggerWindow (*((GetDebuggerWindowSELPROTO)(gDebuggerWindowHFT[GetDebuggerWindowSEL])))
  58.  
  59. /* DebuggerWindowFlush
  60. ** Empties the contents of the Debugger Window
  61. */
  62. typedef ACCBPROTO1 void (ACCBPROTO2 *DebuggerWindowFlushSELPROTO)(void);
  63. #define DebuggerWindowFlush (*((DebuggerWindowFlushSELPROTO)(gDebuggerWindowHFT[DebuggerWindowFlushSEL])))
  64.  
  65. #endif
  66.